﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.SessionState;

namespace wxx.setpower
{
    /// <summary>
    /// index1 的摘要说明
    /// </summary>
    public class index1 : IHttpHandler,IRequiresSessionState
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            if (context.Request.QueryString["type"] =="admin")
            {
                String strret = context.Session["username"].ToString();
                strret = strret +"|"+ DateTime.Now.ToString();
                context.Response.Write(strret);
            }
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}